package tms.business.time;

import tms.persistence.time.TimeProvider;

import javax.ejb.EJB;
import javax.ejb.Schedule;
import javax.ejb.Stateless;


@Stateless
public class TimeIncrementTrigger {
    @EJB
    TimeProvider timeProvider;

    
    @Schedule(second = "0", minute="*", hour="*")
    public void trigger() {
        timeProvider.updateRunningTime(60*1000);
    }
}
